package com.equipment_management_p1.service;


import com.pojo.Entity.Equipment;
import com.pojo.Entity.EquipmentRental;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IEquipmentService {
    public Integer insert(Equipment equipment);
    public Integer modifyQuantity(Integer eID, Integer eInventory,String vPretime,String vPreEndtime, HttpServletRequest httpServletRequest);
    public Integer update(Equipment equipment);
    public Equipment getEquipment(Integer eID);
    public List<Equipment> getlEquipment(Integer page,Integer number,String eType);
    public List<EquipmentRental> getlEquipmentRental(Integer page,Integer number,Integer erTYpe,Integer erReturn,Integer rID,HttpServletRequest httpServletRequest);
    public Integer updateER(Integer erID,Integer erType,Integer erReturn);

    public Integer getsum(String eType);
    public Integer getsume(Integer erTYpe,Integer erReturn,Integer rID);

    public  Integer delete(Integer eID);
}
